#pragma once
#include "Projectile.h"
class SniperBullet :
	public Projectile
{
public:
	SniperBullet(float posX = -1, float posY = -1, Entity* owner = nullptr);
	~SniperBullet() = default;
	SniperBullet(const SniperBullet&) = default; 
	SniperBullet& operator = (const SniperBullet&) = default; 

	int GetType() const { return ENT_SNIPER_BULLET; }

	//Interface
	void Update(float dt);
	void Render();
	void HandleCollision(const IEntity* pOther);
	void HandleEvent();
	SGD::Rectangle GetRect() const;

	// Accessor 
	float GetTimer(void) const { return m_fTimer; }

	// Mutator
	void SetTimer(float t) { m_fTimer = t; }

private:
	float m_fTimer = 0.0f; 
};

